#ifndef __TNPU_BO_H__
#define __TNPU_BO_H__

typedef enum {
    TNPU_RET_SUCCESS = 0,
    TNPU_RET_FAIL = -1,
} tnpu_ret_t;

/* Please do not modify.
 * This interface needs to be synchronized
 * with the driver interface.
 */
typedef struct tnpu_bo {
     int          handle;
     uint32_t     size;
     void        *paddr;
     void        *vaddr;
 } tnpu_bo_t;


#ifdef __cplusplus
extern "C" {
#endif

/* Apply for continuous mem from CMA*/
tnpu_ret_t tnpu_create_bo(uint32_t size, tnpu_bo_t *bo);
tnpu_ret_t tnpu_destroy_bo(tnpu_bo_t *bo);

#ifdef __cplusplus
}
#endif

#endif // __TNPU_BO_H__
